
// src/main/java/com/example/player/command/SeekCommand.java
package com.example.command;


import com.example.core.MediaPlayer;

/**
 * 具体命令：跳转命令（带参数）
 */
public class SeekCommand implements com.example.command.Command {
    private final MediaPlayer player;
    private final int position;

    public SeekCommand(MediaPlayer player, int position) {
        this.player = player;
        this.position = position;
    }

    @Override
    public void execute() {
        player.seek(position);
    }
}
